

#include "Stack.h"
#include "Queue.h"

void StackTest()
{
	Stack st;

	StackInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	printf("%d\n", StackSize(&st));
	StackPop(&st);
	printf("%d\n", StackSize(&st));
	StackPop(&st);
	StackPop(&st);

	printf("%d\n", StackSize(&st));
	StackDestroy(&st);
}

void QueueTest()
{
	Queue pq;

	QueueInit(&pq);

	int size = QueueSize(&pq);

	QueuePush(&pq, 1);
	size = QueueSize(&pq);
	QueuePush(&pq, 2);
	size = QueueSize(&pq);
	QueuePush(&pq, 3);
	size = QueueSize(&pq);
	QueuePush(&pq, 4);
	size = QueueSize(&pq);

	QueuePop(&pq);

	int front = QueueFront(&pq);
	int back = QueueBack(&pq);

	QueueDestroy(&pq);
}
int main()
{
	//StackTest();
	QueueTest();

	return 0;
}
